<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="@{/}">
    <meta charset="UTF-8">
    <title>病人详情页</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css" />
    <link href="/css/style1.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
</head>
<body>
<!-- 加载header.html -->
<div th:include="admin/header1"></div>
<main>
    <section class="breadcrumbs">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <ol>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">病人详细</a></li>
                </ol>
            </div>
        </div>
    </section>
    <section class="inner-page">
<div class="container">
    <div class="card ">
        <div class="card-header">
            <h3 class="card-title">病人详情</h3>
        </div>
        <div style="display: flex; justify-content: flex-end;">
            <a th:href="@{/user/selectAllUsersByPage?currentPage=1}" class="btn"
               style="font-size: 10px;width: 50px; margin: 40px 80px 0 0;">返回</a>
        </div>
        <div class="card-body col-8 mx-auto">
            <div class="table-responsive">
                <table class="table">
                    <tbody class="text-center">
                    <tr>
                        <th>病人名称</th>
                        <td th:text="${user.name}"></td>
                    </tr>
                    <tr>
                        <th>病人密码</th>
                        <td th:text="${user.pwd}"></td>
                    </tr>
                    <tr>
                        <th>病人电话</th>
                        <td th:text="${user.phone}"></td>
                    </tr>
                    <tr>
                        <th>病人性别</th>
                        <td th:text="${user.sex}"></td>
                    </tr>
                    <tr>
                        <th>出生日期</th>
                        <td th:text="${user.birthday}"></td>
                    </tr>
                    <tr>
                        <th>病人住址</th>
                        <td th:text="${user.address}"></td>
                    </tr>
                    <tr>
                        <th>身份证号</th>
                        <td th:text="${user.cno}"></td>
                    </tr>
                    <tr>
                        <th>病人权限</th>
                        <td th:text="${user.role}"></td>
                    </tr>
                    <tr>
                        <th>病人余额</th>
                        <td th:text="${user.balance}"></td>
                    </tr>
                    <tr>
                        <th>病人头像</th>
                        <td>
                            <img th:src="${user.tx}" alt="病人头像"
                                 style="height: 50px; width: 50px; display: block; margin: auto;">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
    </section>
</main>
</body>
</html>
